
#ifndef _CCOMMAND_H_
#define _CCOMMAND_H_


class CPerson;

class CCommand
{
    public:
        CPerson *itsPerson;
        void (CPerson:: *nextAction)();
    
    public:
        CCommand(CPerson *thePerson = 0, void (CPerson:: *theNextAction)() = 0)
        {
            itsPerson = thePerson;
            nextAction = theNextAction;
        }
        
        virtual ~CCommand();
        
    public:
        void execute();


};

#endif /* _CCOMMAND_H_ */
